﻿@using Sem.Authentication.MvcHelper.InAppIps
@using Sem.Authentication.MvcHelper.Yubico

@{
    ViewBag.Title = "Home Page";
}

<div class="jumbotron">
    <h1>Sem.Authentication.MvcHelper</h1>
    <p class="lead">This web site does implement samples on how to use the functionality of Sem.Authentication.MvcHelper.</p>
</div>

<div class="row">
    <div class="col-md-4">
        <h2>CodePlex</h2>
        <p>The home of Sem.Authentication.MvcHelper is on CodePlex.</p>
        <p><a class="btn btn-default" href="https://semauthentication.codeplex.com/">CodePlex &raquo;</a></p>
    </div>
    <div class="col-md-4">
        <h2>Fast Request Protector</h2>
        <p>Try requesting this page faster than one request per second.</p>
        <p><a class="btn btn-default" href="@Url.Action("OnlyOneRequestPerSecond")">Only one Request per Second &raquo;</a></p>
    </div>
    <div class="col-md-4">
        <h2>Yubico Authentication</h2>
        <p>
            This MVC action is protected by an
        </p>
        <form method="POST" action="@Url.Action("YubikeyProtected")">
            <p>
                @* The input box you might omit the action in this call, but then you will only get a span with the input element instead of the image and the input element *@
                @Html.YubikeyInput("YubikeyProtected")
                <input type="submit" class="btn btn-default" value="try it &raquo;" />
            </p>
        </form>
    </div>
</div>
<div class="row">
    <div class="col-md-4">
        <h2>Simple Form-Landmine</h2>
        <p>
            This MVC action is protected by a form landmine.
        </p>
        <form method="POST" action="@Url.Action("LandMineProtected")">
            <p>
                @Html.Landmine()
                <input type="submit" class="btn btn-default" value="try it &raquo;" />
            </p>
        </form>
        <form method="POST" action="@Url.Action("LandMineProtected")">
            <p>
                <input type="text" name="Landmine" value="this value is not expected" />
                <input type="submit" class="btn btn-default" value="try it &raquo;" />
            </p>
        </form>
    </div>
    <div class="col-md-4">
        <h2>Landmine for WebAPI</h2>
        <p>
            This page contains server a WebAPI server call that is protected by a landmine using a known header value.
        </p>
        <p><a class="btn btn-default" href="~/WebAPISample.html">Page with WebAPI-Landmine &raquo;</a></p>
    </div>
</div>